package com.senven.order.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.senven.common.entity.Order;
import com.senven.common.entity.PayOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wt
 * @since 2022-08-31
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    List<Order> findOrderByUseid(String userid);

    List<Order> findOrderByOrderId(String orderid);

    List<Order> findOrderByOrderIdToTal(String orderid);

    List<Order> backFindAllOrder(Map map);


    List<Order> orderfindOrderByOrderId(Map map);

    Integer selectRoleId(String id);

    Integer selectBranchId(String id);

    String selectOrderId(String orderId);

    int insertUserByOrder(@Param("orderId") String orderId, @Param("userId") String userId);

    int insertUserByGoods(PayOrder xxx);
}
